home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 8 code / AUX Hybrid Apps / AUX System Calls / src / execv.c < prev    next >
Encoding:
Text File  |  1991-10-09  |  546 b   |  27 lines  |  [TEXT/tefi]

  1. /*    @(#)execv.c    2.1     */
  2. /*
  3.  *    auxexecv(file, argv)
  4.  *
  5.  *    where argv is a vector argv[0] ... argv[x], NULL
  6.  *    last vector element must be NULL
  7.  *    environment passed automatically
  8.  */
  9. pascal long     AUXDispatch(selector,p)
  10. short           selector;
  11. char            *p;
  12. extern        0xABf9;
  13.  
  14. #define AUX_GET_ENVIRON 11              /* get pointer to environ */
  15.  
  16. auxexecv(file, argv)
  17.     char    *file;
  18.     char    **argv;
  19. {
  20.     char    **auxenviron;
  21.     
  22.     /* copy the environment */
  23.     AUXDispatch(AUX_GET_ENVIRON,(char *)&auxenviron);
  24.  
  25.     return(auxexecve(file, argv, auxenviron));
  26. }
  27.